﻿using SIG.Model.LuceneSearch;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIG.Data.Repositories
{
    public static class SampleDataRepository
    {
        public static SearchData Get(int id)
        {
            return GetAll().SingleOrDefault(x => x.Id.Equals(id));
        }
        public static List<SearchData> GetAll()
        {
            return new
              List<SearchData> {
                           new SearchData {Id = "1", Name = "Belgrad", Description = "City in Serbia"},
                           new SearchData {Id = "2", Name = "Moscow", Description = "City in Russia"},
                           new SearchData {Id = "3", Name = "Chicago", Description = "City in USA"},
                           new SearchData {Id = "4", Name = "Mumbai", Description = "City in India"},
                           new SearchData {Id = "5", Name = "Hong-Kong", Description = "City in Hong-Kong"},
                         };
        }
    }
}
